package com.example.studentstatusmanagement.service;

import com.example.studentstatusmanagement.mapper.HygieneMapper;
import com.example.studentstatusmanagement.pojo.Hygiene;
import com.example.studentstatusmanagement.pojo.HygieneExample;
import com.example.studentstatusmanagement.pojo.doo.ReqHygiene;
import com.example.studentstatusmanagement.pojo.dto.SHygiene;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HygieneServiceImpl implements HygieneService{

    @Resource
    private HygieneMapper hygieneMapper;
    @Override
    public List<SHygiene> selectStudentHygienes(ReqHygiene reqHygiene) {
        return hygieneMapper.selectStudentHygienes(reqHygiene);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return hygieneMapper.deleteByPrimaryKey(
                id
        );
    }

    @Override
    public int insertSelective(Hygiene record) {
        return hygieneMapper.insertSelective(record);
    }

    @Override
    public List<Hygiene> selectByExample(HygieneExample example) {
        return hygieneMapper.selectByExample(example);
    }

    @Override
    public Hygiene selectByPrimaryKey(Integer id) {
        return selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Hygiene record) {
        return hygieneMapper.updateByPrimaryKeySelective(record);
    }
}
